home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15352 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.interpath.net!softbase
  2. From: softbase@mercury.interpath.com (Scott McMahan - Softbase Systems)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: How do I make a .QLB from a .LIB?
  5. Date: 18 Apr 1996 16:46:24 GMT
  6. Organization: Interpath -- Providing Internet access to North Carolina
  7. Message-ID: <4l5rl0$kbr@news.interpath.net>
  8. References: <4l493b$6j3@news.nstn.ca>
  9. NNTP-Posting-Host: mercury.interpath.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Dave Nugent (dave@highlander.cbnet.ns.ca) wrote:
  13.  
  14. : This gives me an error of:
  15. : unresolved external _printf
  16.  
  17. : Why is this?  Why would the linker think the printf is external when it
  18. : should have been included in the original test.obj file created when me.c
  19. : was compiled. 
  20.  
  21. The *linker* links object code, libraries, and system libraries to
  22. produce a load module (of some sort). All the compiler did was
  23. compile your source to object format. The compiler did not
  24. touch the standard libraries, that's the linker's job.
  25. The compiler just adds in stubs that the linker has to resolve
  26. somehow.
  27.  
  28. For more information, see the book Deep C Secrets by Peter
  29. Van Der Linden.
  30.  
  31. Scott
  32.  
  33.